Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 14: Building Elevation Grids

../ch14/14fig03.gif
Figure 14.3

A ribbon using a 20.2 elevation grid.

14fig03.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
    appearance Appearance {
        material Material {
            diffuseColor 1.0 1.0 0.0
        }
    }
    geometry ElevationGrid {
        xDimension  2
        zDimension  20
        xSpacing    1.0
        zSpacing    4.0
        solid       FALSE
        creaseAngle 0.785
        height [
            0.00,  0.59,  0.95,  0.95,  0.59,
            0.00, -0.59, -0.95, -0.95, -0.59,
            0.00,  0.59,  0.95,  0.95,  0.59,
            0.00, -0.59, -0.95, -0.95, -0.59,
            0.00,  0.59,  0.95,  0.95,  0.59,
            0.00, -0.59, -0.95, -0.95, -0.59,
            0.00,  0.59,  0.95,  0.95,  0.59,
            0.00, -0.59, -0.95, -0.95, -0.59,
        ]
    }
}